//package com.example.demo.config;
//
//import net.hasor.core.ApiBinder;
//import net.hasor.core.DimModule;
//import net.hasor.db.JdbcModule;
//import net.hasor.db.Level;
//import net.hasor.spring.SpringModule;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//import javax.sql.DataSource;
//
///**
// * @author 张述江
// * @date 2023-08-24
// */
//@DimModule
//@Component
//public class ExampleModule implements SpringModule {
//    @Resource
//    private DataSource dataSource = null;
//
//    @Override
//    public void loadModule(ApiBinder apiBinder) throws Throwable {
//        // .DataSource form Spring boot into Hasor
//        apiBinder.installModule(new JdbcModule(Level.Full, this.dataSource));
//    }
//}
